import request from '@/utils/request'

const BASE_URL = ''
export function downLoadTest() {
    return new Promise((res, rej) => {
        setTimeout(() => {
            res({
                code: 200, data: {
                    href: '/static_img/test.xlsx',
                }
            })
        }, 1000)
    })
}


// 下载核安全排名数据
export function exportExcelSafetyData(query) {
    return request({
        url: `${BASE_URL}/SafetyOrderIndex.asmx/ExportExcel`,
        method: 'post',
        params: query
    })
}

// 下载异常查询
export function ExportExcelAbnormal(query) {
    return request({
        url: `${BASE_URL}/HistoryAlarmIndex.asmx/ExportExcelAbnormal`,
        method: 'post',
        params: query
    })
}

// 下载异常督办
export function ExportExcelSupervision(query) {
    return request({
        url: `${BASE_URL}/HistoryAlarmIndex.asmx/ExportExcelSupervision`,
        method: 'post',
        params: query
    })
}

// 下载历史数据
export function exportExcelHistoryData(query) {
    return request({
        url: `${BASE_URL}/HistoryData.asmx/ExportExcel`,
        method: 'post',
        params: query
    })
}

// 下载源状态变更
export function exportExcelHistoryRadStatusLst(query) {
    return request({
        url: `${BASE_URL}/HistoryRadStatusLst.asmx/ExportExcel`,
        method: 'post',
        params: query
    })
}

// 下载出入库记录
export function exportExcelHistoryStockLst(query) {
    return request({
        url: `${BASE_URL}/HistoryStockLst.asmx/ExportExcel`,
        method: 'post',
        params: query
    })
}
